import request from '@/utils/request'

//  跟单人员查询
export function getdocumentaryApi  (params) {
    return request({
        url: `work/documentary/listFollow`,
        method: "get",
        params
    })
}
//  取消授权跟单人员接口
export function getcancelAuthorizationApi(userId) {
    return request({
        url: `work/documentary/cancelAuthorization/${userId}`,
        method: "get",
    })
}
//  授权跟单人员接口
export function addcancelAuthorizationApi(data) {
    return request({
        url: `/work/documentary/empower`,
        method: "post",
        data
    })
}
// /work/documentary/empower
//解绑
export function getdocumentaryunbindApi(expertId) {
    return request({
        url: `/work/documentary/unbind/${expertId}`,
        method: "get"
    })
}
//绑定
export function getdocumentarybindApi(data) {
    return request({
        url: `/work/documentary/bind`,
        method: "put",
        data
    })
}
//查询绑定的类型的专家
export function getlistExpertProjectAndFieldApi(userId) {
    return request({
        url: `work/documentary/listExpertProjectAndField/${userId}`,
        method: "get",
    })
}
//查询未绑定的专家
export function getunboundExpertsApi(params) {
    return request({
        url: `work/documentary/unboundExperts`,
        method: "get",
        params
    })
}



